<?php
include "./mysql.php";
session_start();

header("Content-type:text/html; charset=utf-8");

$username=$_GET['username']; $password=$_GET['password'];

$mysql=new Mysql();

$status=$mysql->valiMems($username,$password);

if($status==1){
	$_SESSION['username']=$username;
	echo json_encode(array(1));
}else{
	echo json_encode(array(0));
}

?>